package com.zzyboot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by zzy on 2017/10/20.
 */
@PropertySource("classpath:application.properties")
@ConfigurationProperties(prefix = "com.zzyboot")
public class ConfigBean {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
